//qqiangzhang
// 导入service
import service from "../../request";
//获取getintolist
function getinto_list(params={}){
    return service.get('/getintolist',{params})
}
//模糊搜索
function getinto_list_search(params={}){
    return service.get('/getintolist',{params})
}
// 删除
function getinto_list_delete(params={}){
    return service.delete(`/getintolist/${params}`)
}
//编辑  patch  /posts/id值  更新数据, 返回更新后的对象
function getinto_list_updata(params={}){
    return service.patch(`/getintolist/${params.id}`,params)
}
// 创建 post    新增数据, 无需指定id(会自动生成), 不会重复 , 返回新增的对象
function getinto_list_create(params={}){
    return service.post('/getintolist',params)
}
    // axios.post('/posts',{ title:'原生js',days:15,author:'me' }).then((res)=>{
    //   console.log(res.data);
    // })

//获取storeArrList
function stock_list(params={}){
    return service.get('/stocklist',{params})
}
//模糊搜索stock
function stock_list_search(params={}){
    return service.get('/stocklist',{params})
}
//创建stock
function stock_list_create(params={}){
    return service.post('/stocklist',params)
}
//删除delete
function stock_list_delete(params={}){
    return service.delete('/stocklist/'+params.id)
}
//update
function stock_list_update(params={}){
    return service.patch(`/stocklist/${params.id}`,params)
}
export {
    getinto_list,
    getinto_list_search,
    getinto_list_delete,
    getinto_list_updata,
    getinto_list_create,
    stock_list,
    stock_list_search,
    stock_list_create,
    stock_list_delete,
    stock_list_update,
}